/// /github/mootdx/mootdx/mootdx/consts.py
// Market
pub const MARKET_SZ: u16 = 0; // 深市
pub const MARKET_SH: u16 = 1; // 沪市
pub const MARKET_BJ: u16 = 2; // 北交

// K线种类
pub const KLINE_5MIN: i32 = 0;
pub const KLINE_15MIN: i32 = 1;
pub const KLINE_30MIN: i32 = 2;
pub const KLINE_1HOUR: i32 = 3;
pub const KLINE_DAILY: i32 = 4;
pub const KLINE_WEEKLY: i32 = 5;
pub const KLINE_MONTHLY: i32 = 6;
pub const KLINE_EX_1MIN: i32 = 7;
pub const KLINE_1MIN: i32 = 8;
pub const KLINE_RI_K: i32 = 9;
pub const KLINE_3MONTH: i32 = 10;
pub const KLINE_YEARLY: i32 = 11;

// 分笔行情最多2000条
pub const MAX_TRANSACTION_COUNT: i32 = 2000;

// K线数据最多800条
pub const MAX_KLINE_COUNT: i32 = 800;

pub const FREQUENCY: [&str; 11] = [
    "5m", "15m", "30m", "1h", "day", "week", "mon", "ex_1m", "1m", "dk", "3mon",
];

// 板块相关参数
pub const BLOCK_SZ: &str = "block_zs.dat";
pub const BLOCK_FG: &str = "block_fg.dat";
pub const BLOCK_GN: &str = "block_gn.dat";
pub const BLOCK_DEFAULT: &str = "block.dat";

pub const TYPE_FLATS: i32 = 0;
pub const TYPE_GROUP: i32 = 1;

pub const HQ_HOSTS: [(&str, &str, i32); 38] = [
    ("深圳双线主站1", "110.41.147.114", 7709),
    ("深圳双线主站2", "8.129.13.54", 7709),
    ("深圳双线主站3", "120.24.149.49", 7709),
    ("深圳双线主站4", "47.113.94.204", 7709),
    ("深圳双线主站5", "8.129.174.169", 7709),
    ("深圳双线主站6", "110.41.154.219", 7709),
    ("上海双线主站1", "124.70.176.52", 7709),
    ("上海双线主站2", "47.100.236.28", 7709),
    ("上海双线主站3", "101.133.214.242", 7709),
    ("上海双线主站4", "47.116.21.80", 7709),
    ("上海双线主站5", "47.116.105.28", 7709),
    ("上海双线主站6", "124.70.199.56", 7709),
    ("北京双线主站1", "121.36.54.217", 7709),
    ("北京双线主站2", "121.36.81.195", 7709),
    ("北京双线主站3", "123.249.15.60", 7709),
    ("广州双线主站1", "124.71.85.110", 7709),
    ("广州双线主站2", "139.9.51.18", 7709),
    ("广州双线主站3", "139.159.239.163", 7709),
    ("上海双线主站7", "106.14.201.131", 7709),
    ("上海双线主站8", "106.14.190.242", 7709),
    ("上海双线主站9", "121.36.225.169", 7709),
    ("上海双线主站10", "123.60.70.228", 7709),
    ("上海双线主站11", "123.60.73.44", 7709),
    ("上海双线主站12", "124.70.133.119", 7709),
    ("上海双线主站13", "124.71.187.72", 7709),
    ("上海双线主站14", "124.71.187.122", 7709),
    ("武汉电信主站1", "119.97.185.59", 7709),
    ("深圳双线主站7", "47.107.64.168", 7709),
    ("北京双线主站4", "124.70.75.113", 7709),
    ("广州双线主站4", "124.71.9.153", 7709),
    ("上海双线主站15", "123.60.84.66", 7709),
    ("深圳双线主站8", "47.107.228.47", 7719),
    ("北京双线主站5", "120.46.186.223", 7709),
    ("北京双线主站6", "124.70.22.210", 7709),
    ("北京双线主站7", "139.9.133.247", 7709),
    ("广州双线主站5", "116.205.163.254", 7709),
    ("广州双线主站6", "116.205.171.132", 7709),
    ("广州双线主站7", "116.205.183.150", 7709),
];

pub const EX_HOSTS: [(&str, &str, i32); 3] = [
    //# ('扩展市场深圳双线1', '112.74.214.43', 7727),
    //# ('扩展市场深圳双线2', '120.24.0.77', 7727),
    //# ('扩展市场深圳双线3', '47.107.75.159', 7727),
    //# ('扩展市场武汉主站1', '119.97.185.5', 7727),
    //# ('扩展市场武汉主站2', '202.103.36.71', 7727),
    //# ('扩展市场武汉主站3', '59.175.238.38', 7727),
    //# ('扩展市场北京双线0', '47.92.127.181', 7727),
    //# ('扩展市场上海双线0', '106.14.95.149', 7727),
    //# ('扩展市场新加双线0', '119.23.127.172', 7727),
    ("银河阿里云扩展行情", "47.112.95.207", 7720),
    ("银河杭州电信扩展行情", "218.75.75.18", 7720),
    ("银河武汉电信扩展行情", "58.49.110.76", 7720),
];

pub const GP_HOSTS: [(&str, &str, i32); 1] = [("默认财务数据线路", "120.76.152.87", 7709)];
